// call_remote.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"
#include "..\..\library\RemoteCall.h"

int _tmain(int argc, _TCHAR* argv[])
{
	CRemoteCall		rc;
	std::string		strSend	= "<Cmd><Type>NULL</Type></Cmd>";
	std::string		strRecv;

	rc.SetUrl("http://127.0.0.1:9415/index.php");
	rc.Call(strSend, strRecv);

// 	strSend = "<Cmd><Type>Login</Type><User>root</User><Pwd>123</Pwd></Cmd>";
// 	rc.Call(strSend, strRecv);

	strSend = "<Cmd><Type>Execute</Type><Cookie>22dc1afe-768f-44ce-9ffa-be4b2cf1ed11</Cookie></Cmd>";
	rc.Call(strSend, strRecv);
	return 0;
}

